package com.cddx.logistics.service.impl;

import com.cddx.logistics.domain.dto.CarStatisticsDTO;
import com.cddx.logistics.mapper.CarStatisticsMapper;
import com.cddx.logistics.service.CarStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarStatisticsServiceImpl implements CarStatisticsService {

    @Autowired
    private CarStatisticsMapper carStatisticsMapper;

    @Override
    public List<CarStatisticsDTO> getCarMonthlyStatistics(int year, String license) {
        return carStatisticsMapper.selectCarMonthlyStatistics(year, license);
    }
}
